Production Kubernetes by Josh Rosso & Rich Lander & Alex Brand & John Harris

Production Kubernetes by Josh Rosso & Rich Lander & Alex Brand & John Harris

Author:Josh Rosso & Rich Lander & Alex Brand & John Harris [Josh Rosso]
Language: eng
Format: epub
ISBN: 9781492092308
Publisher: O'Reilly Media, Inc.
Published: 2021-03-15T18:30:00+00:00


Pushing Metrics

Not every workload is a good fit for the scraping model. In these cases the Prometheus Pushgateway may be used. For example, a batch workload that shuts down when it has finished its work may not give the Prometheus server the chance to collect all metrics before it disappears. For this situation, the batch workload can push its metrics to the Pushgateway which, in turn, exposes those metrics for the Prometheus server to retrieve. So if your platform will support workloads that call for this support, you will likely need to deploy the Pushgateway as a part of your metrics stack and publish information for tenants to leverage it. They will need to know where it is in the cluster and how to use its REST-like HTTP API. Figure 9-2 illustrates an ephemeral workload leveraging a Prometheus client library that supports pushing metrics to a Pushgateway. Those metrics are then scraped by a Prometheus server.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.